package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class ResourcesList implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;

	private String				resId;

	private String				resName;

	private String				publishDate;

	private String				thumbnail;

	private Integer				resType;

	private String				resTypeId;

	private String				resCategoryId;

	private String				resCategoryName;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date				datePx;

	private int					periodOfTime;

	private Integer				status;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public Integer getResType() {
		return resType;
	}

	public void setResType(Integer resType) {
		this.resType = resType;
	}

	public String getResTypeId() {
		return resTypeId;
	}

	public void setResTypeId(String resTypeId) {
		this.resTypeId = resTypeId;
	}

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getResCategoryName() {
		return resCategoryName;
	}

	public void setResCategoryName(String resCategoryName) {
		this.resCategoryName = resCategoryName;
	}

	public Date getDatePx() {
		return datePx;
	}

	public void setDatePx(Date datePx) {
		this.datePx = datePx;
	}

	public int getPeriodOfTime() {
		return periodOfTime;
	}

	public void setPeriodOfTime(int periodOfTime) {
		this.periodOfTime = periodOfTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((resName == null) ? 0 : resName.hashCode());
		result = prime * result + ((thumbnail == null) ? 0 : thumbnail.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResourcesList other = (ResourcesList) obj;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals( other.resId ))
			return false;
		if (resName == null) {
			if (other.resName != null)
				return false;
		} else if (!resName.equals( other.resName ))
			return false;
		if (thumbnail == null) {
			if (other.thumbnail != null)
				return false;
		} else if (!thumbnail.equals( other.thumbnail ))
			return false;
		return true;
	}

	public ResourcesList() {
		super();
	}

	public ResourcesList(String resId, String resName, String publishDate, String thumbnail, Integer resType, String resTypeId, String resCategoryId,
			String resCategoryName) {
		super();
		this.resId = resId;
		this.resName = resName;
		this.publishDate = publishDate;
		this.thumbnail = thumbnail;
		this.resType = resType;
		this.resTypeId = resTypeId;
		this.resCategoryId = resCategoryId;
		this.resCategoryName = resCategoryName;
	}

	public ResourcesList(String resId, String resName, String publishDate, String thumbnail, Integer resType, String resTypeId, String resCategoryId,
			String resCategoryName, Date datePx, int periodOfTime, Integer status) {
		super();
		this.resId = resId;
		this.resName = resName;
		this.publishDate = publishDate;
		this.thumbnail = thumbnail;
		this.resType = resType;
		this.resTypeId = resTypeId;
		this.resCategoryId = resCategoryId;
		this.resCategoryName = resCategoryName;
		this.datePx = datePx;
		this.periodOfTime = periodOfTime;
		this.status = status;
	}

	@Override
	public String toString() {
		return "ResourcesList [resId=" + resId + ", resName=" + resName + ", publishDate=" + publishDate + ", thumbnail=" + thumbnail + ", resType="
				+ resType + ", resTypeId=" + resTypeId + ", resCategoryId=" + resCategoryId + ", resCategoryName=" + resCategoryName + ", datePx="
				+ datePx + ", periodOfTime=" + periodOfTime + ", status=" + status + "]";
	}
}